using Google.ProtocolBuffers;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class SnsUserPageRequest : GeneratedMessageLite<SnsUserPageRequest, SnsUserPageRequest.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<SnsUserPageRequest, SnsUserPageRequest.Builder>
		{
			private bool resultIsReadOnly;
			private SnsUserPageRequest result;
			protected override SnsUserPageRequest.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override SnsUserPageRequest MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override SnsUserPageRequest DefaultInstanceForType
			{
				get
				{
					return SnsUserPageRequest.DefaultInstance;
				}
			}
			public BaseRequest BaseRequest
			{
				get
				{
					return this.result.BaseRequest;
				}
				set
				{
					this.SetBaseRequest(value);
				}
			}
			public string FirstPageMd5
			{
				get
				{
					return this.result.FirstPageMd5;
				}
				set
				{
					this.SetFirstPageMd5(value);
				}
			}
			public string Username
			{
				get
				{
					return this.result.Username;
				}
				set
				{
					this.SetUsername(value);
				}
			}
			public ulong MaxId
			{
				get
				{
					return this.result.MaxId;
				}
				set
				{
					this.SetMaxId(value);
				}
			}
			public uint Source
			{
				get
				{
					return this.result.Source;
				}
				set
				{
					this.SetSource(value);
				}
			}
			public ulong MinFilterId
			{
				get
				{
					return this.result.MinFilterId;
				}
				set
				{
					this.SetMinFilterId(value);
				}
			}
			public uint LastRequestTime
			{
				get
				{
					return this.result.LastRequestTime;
				}
				set
				{
					this.SetLastRequestTime(value);
				}
			}
			public Builder()
			{
				this.result = SnsUserPageRequest.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(SnsUserPageRequest cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private SnsUserPageRequest PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					SnsUserPageRequest other = this.result;
					this.result = new SnsUserPageRequest();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override SnsUserPageRequest.Builder Clear()
			{
				this.result = SnsUserPageRequest.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override SnsUserPageRequest.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new SnsUserPageRequest.Builder(this.result);
				}
				return new SnsUserPageRequest.Builder().MergeFrom(this.result);
			}
			public override SnsUserPageRequest BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override SnsUserPageRequest.Builder MergeFrom(IMessageLite other)
			{
				if (other is SnsUserPageRequest)
				{
					return this.MergeFrom((SnsUserPageRequest)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override SnsUserPageRequest.Builder MergeFrom(SnsUserPageRequest other)
			{
				return this;
			}
			public override SnsUserPageRequest.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override SnsUserPageRequest.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(SnsUserPageRequest._snsUserPageRequestFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = SnsUserPageRequest._snsUserPageRequestFieldTags[num2];
					}
					uint num3 = num;
					if (num3 <= 26u)
					{
						if (num3 <= 10u)
						{
							if (num3 == 0u)
							{
								throw InvalidProtocolBufferException.InvalidTag();
							}
							if (num3 == 10u)
							{
								BaseRequest.Builder builder = BaseRequest.CreateBuilder();
								if (this.result.hasBaseRequest)
								{
									builder.MergeFrom(this.BaseRequest);
								}
								input.ReadMessage(builder, extensionRegistry);
								this.BaseRequest = builder.BuildPartial();
								continue;
							}
						}
						else
						{
							if (num3 == 18u)
							{
								this.result.hasFirstPageMd5 = input.ReadString(ref this.result.firstPageMd5_);
								continue;
							}
							if (num3 == 26u)
							{
								this.result.hasUsername = input.ReadString(ref this.result.username_);
								continue;
							}
						}
					}
					else
					{
						if (num3 <= 40u)
						{
							if (num3 == 32u)
							{
								this.result.hasMaxId = input.ReadUInt64(ref this.result.maxId_);
								continue;
							}
							if (num3 == 40u)
							{
								this.result.hasSource = input.ReadUInt32(ref this.result.source_);
								continue;
							}
						}
						else
						{
							if (num3 == 48u)
							{
								this.result.hasMinFilterId = input.ReadUInt64(ref this.result.minFilterId_);
								continue;
							}
							if (num3 == 56u)
							{
								this.result.hasLastRequestTime = input.ReadUInt32(ref this.result.lastRequestTime_);
								continue;
							}
						}
					}
					if (WireFormat.IsEndGroupTag(num))
					{
						return this;
					}
					this.ParseUnknownField(input, extensionRegistry, num, text);
				}
				return this;
			}
			public SnsUserPageRequest.Builder SetBaseRequest(BaseRequest value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasBaseRequest = true;
				this.result.baseRequest_ = value;
				return this;
			}
			public SnsUserPageRequest.Builder SetBaseRequest(BaseRequest.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasBaseRequest = true;
				this.result.baseRequest_ = builderForValue.Build();
				return this;
			}
			public SnsUserPageRequest.Builder MergeBaseRequest(BaseRequest value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasBaseRequest && this.result.baseRequest_ != BaseRequest.DefaultInstance)
				{
					this.result.baseRequest_ = BaseRequest.CreateBuilder(this.result.baseRequest_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.baseRequest_ = value;
				}
				this.result.hasBaseRequest = true;
				return this;
			}
			public SnsUserPageRequest.Builder ClearBaseRequest()
			{
				this.PrepareBuilder();
				this.result.hasBaseRequest = false;
				this.result.baseRequest_ = null;
				return this;
			}
			public SnsUserPageRequest.Builder SetFirstPageMd5(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasFirstPageMd5 = true;
				this.result.firstPageMd5_ = value;
				return this;
			}
			public SnsUserPageRequest.Builder ClearFirstPageMd5()
			{
				this.PrepareBuilder();
				this.result.hasFirstPageMd5 = false;
				this.result.firstPageMd5_ = "";
				return this;
			}
			public SnsUserPageRequest.Builder SetUsername(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasUsername = true;
				this.result.username_ = value;
				return this;
			}
			public SnsUserPageRequest.Builder ClearUsername()
			{
				this.PrepareBuilder();
				this.result.hasUsername = false;
				this.result.username_ = "";
				return this;
			}
			public SnsUserPageRequest.Builder SetMaxId(ulong value)
			{
				this.PrepareBuilder();
				this.result.hasMaxId = true;
				this.result.maxId_ = value;
				return this;
			}
			public SnsUserPageRequest.Builder ClearMaxId()
			{
				this.PrepareBuilder();
				this.result.hasMaxId = false;
				this.result.maxId_ = 0uL;
				return this;
			}
			public SnsUserPageRequest.Builder SetSource(uint value)
			{
				this.PrepareBuilder();
				this.result.hasSource = true;
				this.result.source_ = value;
				return this;
			}
			public SnsUserPageRequest.Builder ClearSource()
			{
				this.PrepareBuilder();
				this.result.hasSource = false;
				this.result.source_ = 0u;
				return this;
			}
			public SnsUserPageRequest.Builder SetMinFilterId(ulong value)
			{
				this.PrepareBuilder();
				this.result.hasMinFilterId = true;
				this.result.minFilterId_ = value;
				return this;
			}
			public SnsUserPageRequest.Builder ClearMinFilterId()
			{
				this.PrepareBuilder();
				this.result.hasMinFilterId = false;
				this.result.minFilterId_ = 0uL;
				return this;
			}
			public SnsUserPageRequest.Builder SetLastRequestTime(uint value)
			{
				this.PrepareBuilder();
				this.result.hasLastRequestTime = true;
				this.result.lastRequestTime_ = value;
				return this;
			}
			public SnsUserPageRequest.Builder ClearLastRequestTime()
			{
				this.PrepareBuilder();
				this.result.hasLastRequestTime = false;
				this.result.lastRequestTime_ = 0u;
				return this;
			}
		}
		public const int BaseRequestFieldNumber = 1;
		public const int FirstPageMd5FieldNumber = 2;
		public const int UsernameFieldNumber = 3;
		public const int MaxIdFieldNumber = 4;
		public const int SourceFieldNumber = 5;
		public const int MinFilterIdFieldNumber = 6;
		public const int LastRequestTimeFieldNumber = 7;
		private static readonly SnsUserPageRequest defaultInstance;
		private static readonly string[] _snsUserPageRequestFieldNames;
		private static readonly uint[] _snsUserPageRequestFieldTags;
		private bool hasBaseRequest;
		private BaseRequest baseRequest_;
		private bool hasFirstPageMd5;
		private string firstPageMd5_ = "";
		private bool hasUsername;
		private string username_ = "";
		private bool hasMaxId;
		private ulong maxId_;
		private bool hasSource;
		private uint source_;
		private bool hasMinFilterId;
		private ulong minFilterId_;
		private bool hasLastRequestTime;
		private uint lastRequestTime_;
		private int memoizedSerializedSize = -1;
		public static SnsUserPageRequest DefaultInstance
		{
			get
			{
				return SnsUserPageRequest.defaultInstance;
			}
		}
		public override SnsUserPageRequest DefaultInstanceForType
		{
			get
			{
				return SnsUserPageRequest.DefaultInstance;
			}
		}
		protected override SnsUserPageRequest ThisMessage
		{
			get
			{
				return this;
			}
		}
		public BaseRequest BaseRequest
		{
			get
			{
				return this.baseRequest_ ?? BaseRequest.DefaultInstance;
			}
		}
		public string FirstPageMd5
		{
			get
			{
				return this.firstPageMd5_;
			}
		}
		public string Username
		{
			get
			{
				return this.username_;
			}
		}
		public ulong MaxId
		{
			get
			{
				return this.maxId_;
			}
		}
		public uint Source
		{
			get
			{
				return this.source_;
			}
		}
		public ulong MinFilterId
		{
			get
			{
				return this.minFilterId_;
			}
		}
		public uint LastRequestTime
		{
			get
			{
				return this.lastRequestTime_;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasBaseRequest && this.hasMaxId && this.BaseRequest.IsInitialized;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasBaseRequest)
				{
					num += CodedOutputStream.ComputeMessageSize(1, this.BaseRequest);
				}
				if (this.hasFirstPageMd5)
				{
					num += CodedOutputStream.ComputeStringSize(2, this.FirstPageMd5);
				}
				if (this.hasUsername)
				{
					num += CodedOutputStream.ComputeStringSize(3, this.Username);
				}
				if (this.hasMaxId)
				{
					num += CodedOutputStream.ComputeUInt64Size(4, this.MaxId);
				}
				if (this.hasSource)
				{
					num += CodedOutputStream.ComputeUInt32Size(5, this.Source);
				}
				if (this.hasMinFilterId)
				{
					num += CodedOutputStream.ComputeUInt64Size(6, this.MinFilterId);
				}
				if (this.hasLastRequestTime)
				{
					num += CodedOutputStream.ComputeUInt32Size(7, this.LastRequestTime);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private SnsUserPageRequest()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] snsUserPageRequestFieldNames = SnsUserPageRequest._snsUserPageRequestFieldNames;
			if (this.hasBaseRequest)
			{
				output.WriteMessage(1, snsUserPageRequestFieldNames[0], this.BaseRequest);
			}
			if (this.hasFirstPageMd5)
			{
				output.WriteString(2, snsUserPageRequestFieldNames[1], this.FirstPageMd5);
			}
			if (this.hasUsername)
			{
				output.WriteString(3, snsUserPageRequestFieldNames[6], this.Username);
			}
			if (this.hasMaxId)
			{
				output.WriteUInt64(4, snsUserPageRequestFieldNames[3], this.MaxId);
			}
			if (this.hasSource)
			{
				output.WriteUInt32(5, snsUserPageRequestFieldNames[5], this.Source);
			}
			if (this.hasMinFilterId)
			{
				output.WriteUInt64(6, snsUserPageRequestFieldNames[4], this.MinFilterId);
			}
			if (this.hasLastRequestTime)
			{
				output.WriteUInt32(7, snsUserPageRequestFieldNames[2], this.LastRequestTime);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasBaseRequest)
			{
				num ^= this.baseRequest_.GetHashCode();
			}
			if (this.hasFirstPageMd5)
			{
				num ^= this.firstPageMd5_.GetHashCode();
			}
			if (this.hasUsername)
			{
				num ^= this.username_.GetHashCode();
			}
			if (this.hasMaxId)
			{
				num ^= this.maxId_.GetHashCode();
			}
			if (this.hasSource)
			{
				num ^= this.source_.GetHashCode();
			}
			if (this.hasMinFilterId)
			{
				num ^= this.minFilterId_.GetHashCode();
			}
			if (this.hasLastRequestTime)
			{
				num ^= this.lastRequestTime_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object object_0)
		{
			SnsUserPageRequest snsUserPageRequest = object_0 as SnsUserPageRequest;
			return snsUserPageRequest != null && (this.hasBaseRequest == snsUserPageRequest.hasBaseRequest && (!this.hasBaseRequest || this.baseRequest_.Equals(snsUserPageRequest.baseRequest_))) && (this.hasFirstPageMd5 == snsUserPageRequest.hasFirstPageMd5 && (!this.hasFirstPageMd5 || this.firstPageMd5_.Equals(snsUserPageRequest.firstPageMd5_))) && (this.hasUsername == snsUserPageRequest.hasUsername && (!this.hasUsername || this.username_.Equals(snsUserPageRequest.username_))) && (this.hasMaxId == snsUserPageRequest.hasMaxId && (!this.hasMaxId || this.maxId_.Equals(snsUserPageRequest.maxId_))) && (this.hasSource == snsUserPageRequest.hasSource && (!this.hasSource || this.source_.Equals(snsUserPageRequest.source_))) && (this.hasMinFilterId == snsUserPageRequest.hasMinFilterId && (!this.hasMinFilterId || this.minFilterId_.Equals(snsUserPageRequest.minFilterId_))) && (this.hasLastRequestTime == snsUserPageRequest.hasLastRequestTime && (!this.hasLastRequestTime || this.lastRequestTime_.Equals(snsUserPageRequest.lastRequestTime_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<SnsUserPageRequest, SnsUserPageRequest.Builder>.PrintField("BaseRequest", this.hasBaseRequest, this.baseRequest_, writer);
			GeneratedMessageLite<SnsUserPageRequest, SnsUserPageRequest.Builder>.PrintField("FirstPageMd5", this.hasFirstPageMd5, this.firstPageMd5_, writer);
			GeneratedMessageLite<SnsUserPageRequest, SnsUserPageRequest.Builder>.PrintField("Username", this.hasUsername, this.username_, writer);
			GeneratedMessageLite<SnsUserPageRequest, SnsUserPageRequest.Builder>.PrintField("MaxId", this.hasMaxId, this.maxId_, writer);
			GeneratedMessageLite<SnsUserPageRequest, SnsUserPageRequest.Builder>.PrintField("Source", this.hasSource, this.source_, writer);
			GeneratedMessageLite<SnsUserPageRequest, SnsUserPageRequest.Builder>.PrintField("MinFilterId", this.hasMinFilterId, this.minFilterId_, writer);
			GeneratedMessageLite<SnsUserPageRequest, SnsUserPageRequest.Builder>.PrintField("LastRequestTime", this.hasLastRequestTime, this.lastRequestTime_, writer);
		}
		public static SnsUserPageRequest ParseFrom(byte[] data)
		{
			return SnsUserPageRequest.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private SnsUserPageRequest MakeReadOnly()
		{
			return this;
		}
		public static SnsUserPageRequest.Builder CreateBuilder()
		{
			return new SnsUserPageRequest.Builder();
		}
		public override SnsUserPageRequest.Builder ToBuilder()
		{
			return SnsUserPageRequest.CreateBuilder(this);
		}
		public override SnsUserPageRequest.Builder CreateBuilderForType()
		{
			return new SnsUserPageRequest.Builder();
		}
		public static SnsUserPageRequest.Builder CreateBuilder(SnsUserPageRequest prototype)
		{
			return new SnsUserPageRequest.Builder(prototype);
		}
		static SnsUserPageRequest()
		{
			SnsUserPageRequest.defaultInstance = new SnsUserPageRequest().MakeReadOnly();
			SnsUserPageRequest._snsUserPageRequestFieldNames = new string[]
			{
				"BaseRequest",
				"FirstPageMd5",
				"LastRequestTime",
				"MaxId",
				"MinFilterId",
				"Source",
				"Username"
			};
			SnsUserPageRequest._snsUserPageRequestFieldTags = new uint[]
			{
				10u,
				18u,
				56u,
				32u,
				48u,
				40u,
				26u
			};
			object.ReferenceEquals(micromsg.Proto.SnsUserPageRequest.Descriptor, null);
		}
	}
}
